package com.yatb.trac.pojo.condition;

import java.math.BigDecimal;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.yatb.trac.util.SQLCondition;

public class AllegatiFinderByIdAllegato implements SQLCondition {

	private String idAllegato;

	public AllegatiFinderByIdAllegato(String idAllegato) {
		this.idAllegato=idAllegato;
	}

	public Criterion create(Object... params) {
		Criterion c = Restrictions.eq("idAllegato", new BigDecimal(idAllegato));
		return c;
	}

}
